<style type="text/css">
#theme_content a:hover
{text-decoration:none;}

/* progress container */
div#progress_container {
	border: 1px solid #ccc; 
	width: 200px; 
	margin: 0px;
	padding: 0px;
	text-align: left;
}

/* progress bar */
div#step_1 {
	height: 12px;
	padding-bottom: 2px;
	font-size: 12px;
	text-align: center;
	overflow: hidden;
}


/* progress bar */
div#step_2 {
	height: 12px;
	padding-bottom: 2px;
	font-size: 12px;
	text-align: center;
	overflow: hidden;
}

/* progress bar */
div#step_3 {
	height: 12px;
	padding-bottom: 2px;
	font-size: 12px;
	text-align: center;
	overflow: hidden;
}
</style> 
<!-- background-color: #FF8D40;  -->
<script language="javascript" src="modules/VoteData/pnajax/ajax_thread.js"></script>
<!--[ include file="admin_header_menu.htm" ]--><div style="clear:both"></div>
<fieldset>
<legend>&nbsp;File Information&nbsp;</legend>
<INPUT TYPE="hidden" value="<!--[$view.id]-->" id="id">
<INPUT TYPE="hidden" value="<!--[$view.filepath]-->/<!--[$view.filename]-->" id="filename">
<table width="80%" border="0">
  <tr>
    <td width="26%"><strong>File id:</strong></td>
    <td width="74%"><!--[$view.id]--></td>
  </tr>
  <tr>
    <td><strong>File name:</strong></td>
    <td><!--[$view.filenamedb]--></td>
  </tr>
  <tr>
    <td><strong>Full path:</strong></td>
    <td><!--[$view.filepath]--></td>
  </tr>
  <tr>
    <td><strong>Upload by:</strong></td>
    <td><!--[$view.uname]--></td>
  </tr>
  <tr>
    <td><strong>Upload date:</strong></td>
    <td><!--[$view.cr_date]--></td>
  </tr>
</table>
</fieldset>
<BR>
<fieldset>
<div align="left">
<legend>&nbsp;Migrate&nbsp;</legend>
<table width="100%" border="0">
  <tr bgcolor="#FFCC66">
    <th width="5%" scope="col" align="center">Step</th>
    <th width="55%" scope="col">Task</th>
    <th width="20%" scope="col">Process</th>
    <th width="20%" scope="col">Status</th>
  </tr>
  <tr  bgcolor="#E8EFF7">
    <td><div align="center">1</div></td>
    <td>
        Read csv file & Insert csv data to temp data 
    </td>
    <td>
       <span id="result1"><!--[$view.all_csv]--></span>
       &nbsp;of &nbsp;
       <span id="result2"><!--[$view.current_csv]--></span>
    </td>
    <td>
      <!--[if $view.all_csv == $view.current_csv && ($view.all_csv != 0)]-->
        <div id="progress_container">
          <div id="step_1" style="width: 100%;color: white; background-color: #339900;">100%</div>
        </div>
      <!--[else]-->
      <div id="progress_container">
        <div id="step_1">waiting</div>
      </div>
      <!--[/if]-->
    </td>
  </tr>
  <tr>
    <td><div align="center">2</div></td>
    <td>
        Data comparation&nbsp;
  </td>
    <td>
       <span id="result3"><!--[$view.all_data]--></span>
        &nbsp;of&nbsp;
       <span id="result4"><!--[$view.current_data]--></span>
    </td>
    <td>
      <!--[if $view.all_data == $view.current_data && ($view.all_data != 0)]-->
        <div id="progress_container">
          <div id="step_2" style="width: 100%;color: white; background-color: #339900;">100%</div>
        </div>
      <!--[else]-->
      <div id="progress_container">
        <div id="step_2">waiting</div>
      </div>
      <!--[/if]-->
    </td>
  </tr>
  <tr  bgcolor="#E8EFF7">
    <td><div align="center">3</div></td>
    <td>Finished</td>
    <td>
       <span id="result5"><!--[$view.all_data]--></span>
        &nbsp;of&nbsp;
       <span id="result6"><!--[$view.current_data]--></span>
    </td>
    <td>
      <!--[if $view.all_data == $view.current_data && ($view.all_data != 0)]-->
        <div id="progress_container">
          <div id="step_3" style="width: 100%;color: white; background-color: #339900;">100%</div>
        </div>
      <!--[else]-->
      <div id="progress_container">
        <div id="step_3">waiting</div>
      </div>
      <!--[/if]-->
    </td>
  </tr>

  <tr>
    <td colspan="3" align="left">
      <!--[if $view.status eq '0']-->
        <input type="button" id="migrate_button" value="Migrate" style="color: white; background-color: #41A128; border-width: 1px;" onclick="javascript:polling_start();javascript:polling_start2();"/>
      <!--[else]-->
        <input type="button" value="Migrate" style="color: white; background-color: #CCCCCC; border-width: 1px;" disabled="disabled"/>
      <!--[/if]-->
    </td>
  </tr>
</table>

</fieldset>


<BR>